<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>全局组件</title>
</head>
<body>
<div id="app">
    <runoob></runoob>
</div>
</body>
<script src="../static/js/vue.js"></script>
<script>
    Vue.component('runoob',{
        template: '<h1>自定义组件!</h1>'
    })
    // 创建根实例
    var vm = new Vue({
        el: '#app'
    })
</script>
</html>